﻿using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;

namespace PC.PickleJar.VisualStudioIntegration.AutoCompletion
{
	[Export(typeof(ICompletionSourceProvider))]
	[ContentType("Code")]
	[Name("token completion")]
	internal class SourceItemCompletionProvider : ICompletionSourceProvider
	{
		public ICompletionSource TryCreateCompletionSource(Microsoft.VisualStudio.Text.ITextBuffer textBuffer)
		{
			return new SourceItemCompletionSource(this, textBuffer);
		}

		[Import]
		internal ITextStructureNavigatorSelectorService NavigatorService
		{
			get;
			set;
		}
	}
}
